<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/6/11
 * Time: 17:02
 * 推送距离表
 */

namespace App\Services;


use App\Models\SendOrderPattern;
use App\Models\ServiceType;

class SendOrderPatternServers extends BaseService
{
    /**
     *
     */
  public function  get_find( int $service_type_id)
   {
       $sercive = ServiceType::query()->where('id',$service_type_id)->first('service_id');
       if($sercive)
       {
         return  SendOrderPattern::query()->where('service_id',$sercive->service_id)->where('level',3)->first('distance');
       }
   }
}